﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;

namespace MultiTenantDemo.Context
{
    public interface IConnectionResolve
    {
        public string ConnectionString { get; }
    }

    public class ConnectionResolve : IConnectionResolve
    {
        public string ConnectionString { get; }

        public ConnectionResolve(IConfiguration configuration)
        {
            ConnectionString = configuration.GetConnectionString("Default");
        }
    }
}
